package entity;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

public class PlayerEntity implements Start {
	// 属性
	private String plName;
	private String plsex;
	private int plyouxi_id;
	private int score;
	private Date pltime;

	public String getPlName() {
		return plName;
	}

	public void setPlName(String plName) {
		this.plName = plName;
	}

	public String getPlsex() {
		return plsex;
	}

	public void setPlsex(String plsex) {
		this.plsex = plsex;
	}

	public int getPlyouxi_id() {
		return plyouxi_id;
	}

	public void setPlyouxi_id(int plyouxi_id) {
		this.plyouxi_id = plyouxi_id;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Date getPltime() {
		return pltime;
	}

	public void setPltime(Date pltime) {
		this.pltime = pltime;
	}

	@Override
	public int doStart() {
		List l = new ArrayList();
		for (int i = 3; i <= 18; i++) {
			l.add(i);
		}
		Collections.shuffle(l);
		int i = (int) l.get(0);
		return i;
	}

}
